//
//  IssueNowNoMoneyAlertController.m
//  FactorySale
//
//  Created by 主事丫环HU on 2020/8/7.
//  Copyright © 2020 主事丫环. All rights reserved.
//

#import "IssueNowNoMoneyAlertController.h"

@interface IssueNowNoMoneyAlertController ()
@property (weak, nonatomic) IBOutlet UIView *tipsView;
@property (weak, nonatomic) IBOutlet UILabel *balanceLabel;

@end

@implementation IssueNowNoMoneyAlertController
- (instancetype)init {
    if (self = [super initWithNibName:nil bundle:nil]) {
        self.modalPresentationStyle = UIModalPresentationCustom;
        self.modalTransitionStyle = UIModalTransitionStyleCrossDissolve;
    }
    return self;
}
- (void)viewDidLoad {
    [super viewDidLoad];
    self.view.backgroundColor = [UIColor colorWithWhite:0.5 alpha:0.5];
    self.balanceLabel.text = [NSString stringWithFormat:@"￥%@",self.model.balance];
}
- (void)viewWillAppear:(BOOL)animated {
    [super viewWillAppear:animated];
    [self animationAlert:self.tipsView];
}
- (IBAction)phoneButtonClick:(UIButton *)sender {
    [HFTools callMobilePhone:self.model.phone];
}

- (IBAction)backButtonClick:(UIButton *)sender {
    if (self.backButtonClick) {
        self.backButtonClick();
    }
    [self dismissViewControllerAnimated:YES completion:nil];
}


@end
